#pragma once

#define OBSTACLES	1
#define MY_TANKS	2
#define OTHER_TANKS	4
#define TEAMS		8
#define CONSTANTS	16
#define SHOTS		32
#define FLAGS		64

class Command
{
private:
	int _index;
	double _speed;
	double _angvel;
	bool _shoot;
	bool _occgrid;
	int _update;

public:
	Command(int index, double speed, double angvel, bool shoot, bool occgrid=false, int update=0);
	~Command(void);

	int index();
	double speed();
	void speed(double newSpeed);
	double angvel();
	void angvel(double newAngvel);
	bool shoot();
	void shoot(bool val);
	bool occgrid();
	void occgrid(bool grid);
	int update();
	void update(int up);
};

